/* ===== 现代化主题样式 ===== */

/* 全局变量 */
:root {
  --primary-color: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --danger-color: #ef4444;
  
  --bg-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --bg-gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --bg-gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --border-radius: 12px;
  --border-radius-lg: 16px;
}

/* ===== 基础样式增强 ===== */

/* 页面整体样式 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: #374151;
}

/* 标题样式增强 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
}

h1 {
  font-size: 2.5rem;
  background: var(--bg-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--bg-gradient-primary);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  position: relative;
  padding-left: 1rem;
}

h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background: var(--bg-gradient-primary);
  border-radius: 2px;
}

/* ===== 自定义容器样式 ===== */

/* 成功指标容器 - 现代化设计 */
.success-block {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--bg-gradient-success);
}

.success-block::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.success-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.success-block h4 {
  color: var(--success-color);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== 表格样式现代化 ===== */

table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  width: 100%;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e5e7eb;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

th {
  background: var(--bg-gradient-primary);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

th:first-child {
  border-top-left-radius: var(--border-radius);
}

th:last-child {
  border-top-right-radius: var(--border-radius);
}

td {
  background: white;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

tr:hover td {
  background: #f9fafb;
}

tr:last-child td:first-child {
  border-bottom-left-radius: var(--border-radius);
}

tr:last-child td:last-child {
  border-bottom-right-radius: var(--border-radius);
}

/* 成功块中的表格特殊样式 */
.success-block table {
  border: none;
  box-shadow: var(--shadow-lg);
  background: white;
}

.success-block th {
  background: var(--bg-gradient-success);
}

/* ===== 网格布局增强 ===== */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gap-4 {
  gap: 1.5rem;
}

/* ===== 自定义块样式现代化 ===== */

.custom-block {
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.custom-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.custom-block.tip {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  box-shadow: var(--shadow-md);
}

.custom-block.tip::before {
  background: var(--bg-gradient-info);
}

.custom-block.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  box-shadow: var(--shadow-md);
}

.custom-block.warning::before {
  background: var(--bg-gradient-warning);
}

.custom-block.info {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #10b981;
  box-shadow: var(--shadow-md);
}

.custom-block.info::before {
  background: var(--bg-gradient-success);
}

.custom-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== 列表样式增强 ===== */

.custom-block ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.custom-block li {
  margin: 0.5rem 0;
  position: relative;
  padding-left: 0.5rem;
}

.custom-block li::marker {
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== 图标和表情符号样式 ===== */

.emoji {
  font-size: 1.3em;
  margin-right: 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

/* ===== 强调文本样式 ===== */

.success-block strong {
  color: var(--success-color);
  font-weight: 700;
  background: linear-gradient(135deg, var(--success-color), #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 代码块样式 ===== */

pre {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid #374151;
}

code {
  background: #f3f4f6;
  color: var(--primary-dark);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
}

pre code {
  background: transparent;
  color: #e5e7eb;
  padding: 0;
}

/* ===== 引用样式 ===== */

blockquote {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  font-style: italic;
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  opacity: 0.3;
}

/* ===== 响应式设计 ===== */

@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .success-block {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.75rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* ===== 动画效果 ===== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-block,
.success-block,
table {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== 滚动条样式 ===== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== 链接样式 ===== */

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
}

/* ===== 按钮样式 ===== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--bg-gradient-primary);
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* ===== 徽章样式 ===== */

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-gradient-primary);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.success {
  background: var(--bg-gradient-success);
}

.badge.warning {
  background: var(--bg-gradient-warning);
}

.badge.info {
  background: var(--bg-gradient-info);
} 